package com.ssy.lingxi.platform.manage.repository;


import com.ssy.lingxi.platform.manage.entity.content.MemberInformationHistory;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface MemberInformationHistoryRepository extends JpaRepository<MemberInformationHistory, Long>, JpaSpecificationExecutor<MemberInformationHistory> {

    List<MemberInformationHistory> findByUserIdAndSelfMemberId(Long userId, Long selfMemberId, Sort sort);

    MemberInformationHistory findByUserIdAndInformationId(Long userId, Long informationId);
}
